package org.visionlibrary.image.normalization;

public class NormalizeLUT {
	static public int[] getLUT(int oldMin, int oldMax, int newMin, int newMax) {
		int[] lut = new int[256];
		LinearNormalization ln = new LinearNormalization(oldMin, oldMax,
				newMin, newMax);

		for (int v = oldMin; v <= oldMax; v++)
			lut[v] = ln.normalize(v);

		return lut;
	}
}
